package com.wzy.vx.exception;

import com.wzy.vx.enums.ResuletEnum;

/**
 * @ProjectName: vx
 * @Package: com.wzy.vx.exception
 * @ClassName: SellException
 * @Author: Administrator
 * @Description: ${description}
 * @Date: 2019/3/13 14:12
 * @Version: 1.0
 */
public class SellException extends  RuntimeException {
    private  Integer code;

    public SellException(ResuletEnum resuletEnum) {
        super(resuletEnum.getMsg());
        this.code = resuletEnum.getCode();
    }

    public SellException(Integer code, String defaultMessage) {
        super(defaultMessage);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
